<%@page import="com.mmy.domain.permissionmenu.TConstRole"%>
<%@page import="com.mmy.domain.permissionmenu.TConstMenu"%>
<%@page import="com.mmy.domain.permissionmenu.TConstRoleMenu"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
 <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
<title>角色菜单</title>
</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
			<main class="at-padding-large-bottom">
			<article>		
	<header class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
			<h2>系统设置</h2>			
		</div>
	</header>
	<section class="container">
	

			<div>
				
				
			<div >
				<h4 class="info-h4">
					<i class="fa fa-caret-right" aria-hidden="true" ></i>新建角色菜单信息
				</h4>
			<table class="info-table">
				<tr>
					<th>
						<label><input type="checkbox" id="ckall" name="ckall" onclick="ckAll(this);">角色名称</label>
					</th>										
					<th>
						<label><input type="checkbox" id="ckall1" name="ckall1" onclick="ckAll1(this);">菜单名称</label>
					</th>					
				</tr>
				<tr>
				<td>
					<c:forEach var="lstConstRole" items="${lstConstRole}">
						<label>
						<input type="checkbox" style="margin:10px;" name="ckone" value="${lstConstRole.getRoleID()}" onclick="ckOne(this)">
						${lstConstRole.getRoleName()}<br>
						</label>
					</c:forEach>	
				</td>
				<td >
					<c:forEach var="lstConstMenu" items="${lstConstMenu}" >
						<label>
						<input type="checkbox" style="margin:10px;" name="ckone1" value="${lstConstMenu.getMenuID()}" onclick="ckOne1(this)">
						${lstConstMenu.getMenuName()}<br>
						</label>
					</c:forEach>
				</td>
				</tr>
				
			</table>
			<center>
				<input type="button" class="btn" value="保存" onclick="createPermissionMenu()"/>
				<input type="button" class="btn" value="返回" onclick="rehidder()"/>
			</center> 
			</div>
			
		

				
			
			</div>
			</section>
			</article>
			</main>
		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
		</div>
<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>
</body>
</html>